package com.liuzy.tool;

import java.util.Random;

/**
 * @author liuzy
 * @since 2016年2月23日
 */
public class PCarCard {
	/* 上海公交卡余额查询接口 */
	public static void main(String[] args) {
		HTTP http = new HTTP();
		http.put2header("Referer", "http://www.sptcc.com/");
		http.put2url("arg1", "41151590831");
		http.put2url("callback", "f");
		http.put2url("_", "" + new Random().nextLong());
		http.doGET("http://220.248.75.36/handapp/PGcardAmtServlet");
	}
	/* 运行结果
	 [  GET] http://220.248.75.36/handapp/PGcardAmtServlet?arg1=41151590831&callback=f&_=-8637528721137089056
	 [ HEAD] Referer=http://www.sptcc.com/
	 [RESUT] f('20.7');
	 */
}
